package com.itheima.extendsdemo;

//子类
//继承的优点：代码复用
public class Teacher extends Person{

    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
